﻿<controls:ChildWindow x:Class="Candy.WebcamChildWindow"
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
           Width="Auto" Height="Auto" 
           Title="WebcamChildWindow" Style="{StaticResource ChildWindowStyleChromeless}">
    <Grid x:Name="LayoutRoot" Margin="0" Width="400" Height="340" Background="{StaticResource ControlBackground}" >
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" MinHeight="89" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <Grid Width="400" Height="300" >
            <Rectangle x:Name="ViewPort"  />
        </Grid>
        <Button x:Name="CancelButton" Content="Cancel" Click="CancelButton_Click" Width="75" Height="23" HorizontalAlignment="Right" Margin="0,8,8,8" Grid.Row="1" VerticalAlignment="Top" />
        <Button x:Name="OKButton" Content="OK" Click="OKButton_Click" Width="75" Height="23" HorizontalAlignment="Right" Margin="0,8,94,8" Grid.Row="1" VerticalAlignment="Top" />
    </Grid>
</controls:ChildWindow>